<script type="text/javascript">
<!--
	function resetsetting()
	{
	    if (confirm('Etes vous sur de vouloir re-initialise les parametres. ?'))
	    {
            document.location.href = 'setting_reset.php';
        }
	}
// -->
</script>
<h3>{$lang.Configuration}</h3>
<br /><br />

{if $error_msg == true}
<span id="errorh"></span>
<div id="error_msg">
    <div class="{$error_class}" style="width:500px;margin:auto;padding:15px;">
        <img src="{$url_site}images/{$error_image}.png" alt="" style="float:left;padding-right:6px;" /> {$error_message}
    </div>
    <br />
</div>
<script type="text/javascript">
<!--
    //Javascript timeout to hide this message
    setTimeout('Effect.Fade("error_msg");', 3000);
-->
</script>
<br /><br />
{/if}

<form method="post" action="setting.php">
<table style="width:90%; margin:auto;">
    <tr>
        <td colspan="2" class="thead"><a name="generale">{$lang.Generale}</a></td>
    </tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Titre_site}</label></td>
		<td class="tcontenue"><input type="text" name="titre_site" value="{$setting.titre_site}"/></td>
	</tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Mot_cle} <small><em>{$lang.Separer_par_virgule}</em></small></label></td>
		<td class="tcontenue"><input type="text" name="keywords" value="{$setting.keywords}"/></td>
	</tr>
    <tr>
		<td class="tcontenue"><label>Page accueil </label></td>
		<td class="tcontenue">{$page_accueil}</td>
	</tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Email_contact}</label></td>
		<td class="tcontenue"><input type="text" name="email_contact" value="{$setting.email_contact}"/></td>
	</tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Description_site}</label></td>
		<td class="tcontenue"><textarea name="description_site" cols="60">{$setting.description_site}</textarea></td>
	</tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Theme}</label></td>
		<td class="tcontenue">{$theme}</td>
	</tr>
    <tr>
		<td class="tcontenue"><label>{$lang.Message_bas_page}</label></dt>
		<td class="tcontenue">{$footer_text}</td>
	</tr>
    <tr>
        <td colspan="2" class="thead"><a name="annonce">{$lang.Annonce}</a></td>
    </tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Annonce_par_page}</label></td>
		<td class="tcontenue"><input type="text" name="annonce_par_page" value="{$setting.annonce_par_page}"/></td>
	</tr>
    <tr>
		<td class="tcontenue"><label>{$lang.Affiche_ville_annonce}</label></td>
		<td class="tcontenue"><select name="affiche_ville_annonce">
			<option value="1" {if $setting.affiche_ville_annonce == 1} selected="selected" {/if} >{$lang.Oui}</option>
			<option value="0" {if $setting.affiche_ville_annonce == 0} selected="selected" {/if} >{$lang.Non}</option>
		</select></td>
	</tr>
	<tr>
        <td class="tcontenue"><label>{$lang.Affiche_secteur_annonce}</label></td>
        <td class="tcontenue"><select name="affiche_secteur_annonce">
            <option value="1" {if $setting.affiche_secteur_annonce == 1} selected="selected" {/if} >{$lang.Oui}</option>
            <option value="0" {if $setting.affiche_secteur_annonce == 0} selected="selected" {/if} >{$lang.Non}</option>
        </select></td>
    </tr>
    <tr>
		<td class="tcontenue"><label>{$lang.Affiche_flux_annonce}</label></td>
		<td class="tcontenue"><select name="affiche_flux_annonce">
			<option value="1" {if $setting.affiche_flux_annonce == 1} selected="selected" {/if} >{$lang.Oui}</option>
			<option value="0" {if $setting.affiche_flux_annonce == 0} selected="selected" {/if} >{$lang.Non}</option>
		</select></td>
	</tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Reecriture_url}</label></td>
		<td class="tcontenue"><select name="url_rewrite">
			<option value="1" {if $setting.url_rewrite == 1} selected="selected" {/if} >{$lang.Oui}</option>
			<option value="0" {if $setting.url_rewrite == 0} selected="selected" {/if} >{$lang.Non}</option>
		</select></td>
	</tr>
    <tr>
        <td colspan="2" class="thead"><a name="accueil">{$lang.Accueil}</a></td>
    </tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Contenu_accueil}</label></dt>
		<td class="tcontenue">{$accueil_text}</td>
	</tr>
    <tr>
		<td class="tcontenue"><label>{$lang.Affiche_map_accueil}</label></td>
		<td class="tcontenue"><select name="map_accueil">
			<option value="1" {if $setting.map_accueil == 1} selected="selected" {/if}>{$lang.Oui}</option>
			<option value="0" {if $setting.map_accueil == 0} selected="selected" {/if}>{$lang.Non}</option>
		</select></td>
	</tr>
    <tr>
        <td colspan="2" class="thead"><a name="securisation">{$lang.Securisation_administration}</a></td>
    </tr>
    <tr>
		<td class="tcontenue"><label>{$lang.Log_identification}</label></td>
		<td class="tcontenue"><select name="log_identification">
			<option value="1" {if $setting.log_identification == 1} selected="selected" {/if} >{$lang.Activee}</option>
			<option value="0" {if $setting.log_identification == 0} selected="selected" {/if} >{$lang.Desactivee}</option>
		</select></td>
	</tr>
    <tr>
		<td class="tcontenue"><label>{$lang.Image_captcha_indentification}</label></td>
		<td class="tcontenue"><select name="image_captcha_identification">
			<option value="1" {if $setting.image_captcha_identification == 1} selected="selected" {/if} >{$lang.Activee}</option>
            <option value="0" {if $setting.image_captcha_identification == 0} selected="selected" {/if} >{$lang.Desactivee}</option>
		</select></td>
	</tr>
    <tr>
        <td colspan="2" class="thead"><a name="param_email">{$lang.Parametrage_envoye_email}</a></td>
    </tr>
    <tr>
        <td class="tcontenue"><label>{$lang.Methode}</label></td>
        <td class="tcontenue">
            <select name="mail_method">
                <option value="php_mail" {if $setting.mail_method == 'php_mail'} selected="selected" {/if}>PHP mail()</option>
                <option value="smtp" {if $setting.mail_method == 'smtp'} selected="selected" {/if}>SMTP</option>
            </select>
        </td>
    </tr>
    <tr>
        <td class="tcontenue"><label>{$lang.SMTP_serveur}</label></td>
        <td class="tcontenue"><input type="text" name="smtp_server" value="{$setting.smtp_server}" size="50" /></td>
    </tr>
    <tr>
        <td class="tcontenue"><label>{$lang.SMTP_port}</label></td>
        <td class="tcontenue"><input type="text" name="smtp_port" value="{$setting.smtp_port}" size="4" /></td>
    </tr>
    <tr>
        <td class="tcontenue"><label>{$lang.SMTP_login}</label></td>
        <td class="tcontenue"><input type="text" name="smtp_login" value="{$setting.smtp_login}" size="50" /></td>
    </tr>
    <tr>
        <td class="tcontenue"><label>{$lang.SMTP_password}</label></td>
        <td class="tcontenue"><input type="text" name="smtp_password" value="{$setting.smtp_password}" size="50" /></td>
    </tr>
	 <tr>
        <td colspan="2" class="thead"><a name="tools_google">{$lang.Outils_google}</a></td>
    </tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Google_identifiant_site}</label></td>
		<td class="tcontenue"><input type="text" size="50" name="google_identifiant_site" value="{$setting.google_iddentifiant_site}"/></td>
	</tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Google_map_cle_api}</label></td>
		<td class="tcontenue"><input type="text" size="50" name="googlemap_key" value="{$setting.googlemap_key}"/></td>
	</tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Google_analytics_code}</label></td>
		<td class="tcontenue"><textarea name="google_analytics" rows="4" cols="60">{$setting.google_analytics}</textarea></td>
	</tr>
     <tr>
        <td colspan="2" class="thead"><a name="other">{$lang.Autre}</a></td>
    </tr>
	<tr>
		<td class="tcontenue"><label>{$lang.Dvlp_mod}</label></td>
		<td class="tcontenue"><select name="dvlp_mod">
			<option value="1"  {if $setting.dvlp_mod == 1} selected="selected" {/if}>{$lang.Oui}</option>
			<option value="0"  {if $setting.dvlp_mod == 0} selected="selected" {/if}>{$lang.Non}</option>
		</select></td>
	</tr>
</table>	
<div style="margin: auto; text-align: center;">
    <input type="hidden" name="url_site" value="{$config.url}" />
    <input type="submit" value="{$lang.Enregistrer}" name="send_setting" />
</div>
</form>
<br />
<br />
<div class="center"><a href="javascript:resetsetting();">-- Remise a zero --</a></div>
<br />
<br />